<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp" %>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> 
<html>
<head>
<title>start</title>
</head>
<link id="editCss" rel="stylesheet" type="text/css" href="<%=path%>/css/right.css" />
<body>
<div class="search">
		<div class="tab">
			<span class="right"></span>
			<span class="font-blue14pxb">网站资料维护</span>
		</div>
	</div>
<%-- 
<div class="search">
	<ul class="con minHeight">
		<li style="width:auto;">
			<a type="button"  class="button" style="margin-left: 8px;width:8px;"
				href="<%=path %>/zebra/monitor/module/moduleAction?method=toAdd&id=${parentModule.id}">
				添加模块
			</a>
				<c:if test="${!empty parentModule}">
					<a type="button"  class="button" style="margin-left: 8px;width:8px;"
						href="<%=path %>/zebra/monitor/module/moduleAction?method=back&parentId=${parentModule.id}">
						返回
					</a>&gt;&gt;
					${parentModule.name}
				</c:if>
				
		</li>
	</ul>
</div>
--%>
<div class="tableBox" style="background:#556272;">
		<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
		<c:choose>
		<c:when test="${!empty moduleList }">
			<tr>
				<th>序号</th>
				<th>名称</th>
				<th>是否监听</th>
				<th>描述</th>
				<th>操  作</th>
			</tr>
			<c:forEach items="${moduleList}" var="module" varStatus="index">
			<tr>
				<td>${index.count}</td>
				<c:choose>
					<c:when test="${module.isList != 1}">
						<td><a type="button" href="<%=path %>/zebra/customer/module/customerMonitorAction?id=${module.id}">
								${module.name}</a>
						</td>
					</c:when>
					<c:otherwise>
						<td>${module.name}</td>
					</c:otherwise>
				</c:choose>
				<td>
					<c:choose>
						<c:when test="${module.isMonitor == 0}">否</c:when>
						<c:otherwise>是</c:otherwise>
					</c:choose>
				</td>
				<td> 
					<c:choose>
						<c:when test="${!empty module.discription}">
							${module.discription}
						</c:when>
						<c:otherwise>
							无
						</c:otherwise>
					</c:choose>
					
				</td>
				<td >
					<c:choose>
						<c:when test="${module.isList == 1}">
							<input type="button" class="button" value="附加关键字" 
								onclick="showKeywordList('${module.id}')" />
							<a href="<%=path %>/zebra/customer/module/customerMonitorAction?method=search&id=${module.id}">
								<img src="<%=path%>/images/icon/list_edit.gif" />搜索
							</a>
						</c:when>
						<c:otherwise>
							无
						</c:otherwise>
					</c:choose>
				</td>
			</tr>
			</c:forEach>
			</c:when>
		<c:otherwise>没有数据！！！</c:otherwise>
		</c:choose>
		</table>
</div>
	<script type="text/javascript" >
		function showKeywordList(moduleId){
			var path = "<%=basePath%>/zebra/customer/module/customerMonitorAction?method=toSelectKeyword&moduleId="+moduleId;
			top.popUp('keywordList', '关键字列表',path, 600, 530,function() {});
		}
	</script>
</body>
</html>
